import { msOfDay } from "./constants"

export function getEndTimeOfDay(date: Date, deltaDay: number = 0): Date {
  const d = new Date(date.getTime() + deltaDay * msOfDay)
  d.setHours(23, 59, 59, 999)
  return d
}
